package com.ruoyi.food.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import com.ruoyi.system.api.domain.SysFile;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 食品宣传对象 opm_food_safe_public
 *
 * @author cjie
 * @date 2021-07-24
 */
@Data
@ApiModel
public class OpmFoodSafePublic extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @ApiModelProperty(value = "序号")
    @JsonSerialize(using = com.fasterxml.jackson.databind.ser.std.ToStringSerializer.class)
    @JSONField(serializeUsing= ToStringSerializer.class)
    private Long id;

    /** 宣传名称 */
    @Excel(name = "宣传名称")
    @ApiModelProperty(value = "宣传名称")
    private String project;

    /** 宣传时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "宣传时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "宣传时间")
    private Date time;

    /** 宣传方式 */
    @Excel(name = "宣传方式")
    @ApiModelProperty(value = "宣传方式")
    private String method;

    /** 宣传人 */
    @Excel(name = "宣传人")
    @ApiModelProperty(value = "宣传人")
    private String publicBy;

    /** 宣传受众 */
    @Excel(name = "宣传受众")
    @ApiModelProperty(value = "宣传受众")
    private String audience;

    /** 宣传内容 */
    @Excel(name = "宣传内容")
    @ApiModelProperty(value = "宣传内容")
    private String content;

    /** 附件份数 */
    @Excel(name = "附件份数")
    @ApiModelProperty(value = "附件份数")
    private Long attachNum;

    /** 附件地址 */
    @Excel(name = "附件地址")
    @ApiModelProperty(value = "附件地址")
    private String url;

    /** 附件id集合 */
    @Excel(name = "附件id集合")
    @ApiModelProperty(value = "附件id集合")
    private List<Long> fileIdList;

    /** 附件集合 */
    @Excel(name = "附件集合")
    @ApiModelProperty(value = "附件集合")
    private List<SysFile> fileList;
}
